package com.li.core.config.rebbitmq;

import org.springframework.amqp.core.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description：
 * @Author：LiDong
 * @Create：2021/1/13
 * @Version：1.0.0
 */
@Configuration
public class OsCoreRabbitMqConfig {

    /**
     * 队列名：全局日志队列
     */
    private static final String OSCORE_LOG_QUEUE = "oscore_log_queue";


    /**
     * 创建全局日志队列
     *
     * @return Queue
     */
    @Bean(name = "osCoreQueue")
    public Queue createLogQueue() {
        return new Queue(OSCORE_LOG_QUEUE);
    }

}
